using System.Reflection;
using Mistral.Data.Mapping;

namespace Mistral.Data
{
	public class FieldMapping : IFieldMapping
	{
		private FieldInfo	_fieldInfo;
		private string		_columnName;
		private bool		_isID;

		public FieldMapping( FieldInfo fieldInfo, string columnName, bool isID )
		{
			_fieldInfo = fieldInfo;
			_columnName = columnName;
			_isID = isID;
		}

		public FieldInfo FieldInfo
		{
			get { return _fieldInfo; }
		}

		#region IFieldMapping Members

		public string ColumnName
		{
			get { return _columnName; }
		}

		public bool IsID
		{
			get { return _isID; }
		}

		#endregion
	}
}